package com.ding.demo;
/*
 * @author ding
 * @date 2021/8/23 14:11
 */


import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringTest {
	public static void main(String[] args) {

		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("com.ding.demo");

//		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		UserService userService = applicationContext.getBean(UserService.class);
		userService.test();
	}
}
